package com.wbb.controller;

import com.wbb.model.TbAdmin;
import com.wbb.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin")
public class AdminController {
    @Autowired
    private AdminService adminService;

    @PostMapping("/queryByUsername")
    public TbAdmin queryByUsername(@RequestParam String username) {
        return adminService.queryByUsername(username);
    }
}
